package com.letsiot.applications.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.letsiot.applications.entity.SysUserRole;

@Repository
public interface SysUserRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    SysUserRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserRole record);

    int updateByPrimaryKey(SysUserRole record);

    List<SysUserRole> getByUserId(Long userId);

    List<SysUserRole> getAll();
}